<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Banner
 *
 * @ORM\Table(name="banner", options={"comment":"轮播图"})
 * @ORM\Entity()
 */
class Banner
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=45, nullable=true, options={"comment":"标题"})
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="image_path", type="string", length=255,  options={"comment"="图片路径"})
     */
    private $image_path;

    /**
     * @var string
     *
     * @ORM\Column(name="h_image_path", type="string", length=255,  options={"comment"="图片绝对路径"})
     */
    private $h_image_path;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="text", nullable=true, options={"comment"="URL"})
     */
    private $url;

    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", nullable=true, options={"default":1, "comment":"状态位: 0失败 1成功"})
     */
    private $status;

    /**
     * @var int
     *
     * @ORM\Column(name="hit", type="integer", options={"comment"="点击次数", "default"=0})
     */
    private $hit;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Banner
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set imagePath
     *
     * @param string $imagePath
     *
     * @return Banner
     */
    public function setImagePath($imagePath)
    {
        $this->image_path = $imagePath;

        return $this;
    }

    /**
     * Get imagePath
     *
     * @return string
     */
    public function getImagePath()
    {
        return $this->image_path;
    }

    /**
     * Set url
     *
     * @param string $url
     *
     * @return Banner
     */
    public function setUrl($url)
    {
        $this->url = $url;

        return $this;
    }

    /**
     * Get url
     *
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Set sortOrder
     *
     * @param integer $sortOrder
     *
     * @return Banner
     */
    public function setSortOrder($sortOrder)
    {
        $this->sortOrder = $sortOrder;

        return $this;
    }

    /**
     * Get sortOrder
     *
     * @return integer
     */
    public function getSortOrder()
    {
        return $this->sortOrder;
    }

    /**
     * Set status
     *
     * @param boolean $status
     *
     * @return Banner
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return boolean
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set hit
     *
     * @param integer $hit
     *
     * @return Banner
     */
    public function setHit($hit)
    {
        $this->hit = $hit;

        return $this;
    }

    /**
     * Get hit
     *
     * @return integer
     */
    public function getHit()
    {
        return $this->hit;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     *
     * @return Banner
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     *
     * @return Banner
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * Get updatedAt
     *
     * @return \DateTime
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }

    /**
     * Set hImagePath
     *
     * @param string $hImagePath
     *
     * @return Banner
     */
    public function setHImagePath($hImagePath)
    {
        $this->h_image_path = $hImagePath;

        return $this;
    }

    /**
     * Get hImagePath
     *
     * @return string
     */
    public function getHImagePath()
    {
        return $this->h_image_path;
    }
}
